package com.tool;

/**
 * @author: tzj
 * @create: 2021-06-09
 **/
public class ThreadPoolUtil {

    public static void main(String[] args) {
        int coreSize = Runtime.getRuntime().availableProcessors();
        int maxSize = Runtime.getRuntime().availableProcessors() * 2;
        System.out.println("核心线程数："+coreSize+" 最大线程数："+maxSize);
    }
}
